home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950528-19950726
/
000022_news@columbia.edu_Thu Jun 1 12:56:38 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA22953
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 1 Jun 1995 08:56:45 -0400
Received: by apakabar.cc.columbia.edu id AA27617
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 1 Jun 1995 08:56:42 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Automating kermit session in a shell script
Date: 1 Jun 1995 12:56:38 GMT
Organization: Columbia University
Lines: 35
Distribution: na
Message-Id: <3qkde6$quu@apakabar.cc.columbia.edu>
References: <3qfuqp$l9f@cuboulder.colorado.edu>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <3qfuqp$l9f@cuboulder.colorado.edu>,
Rick Grubin <grubin@spot.Colorado.EDU> wrote:
: I would like to automate a kermit session between two hosts
: in a shell script (or DOS batch file, either way is acceptable).
: The two computers in question are connected directly via a serial
: connection (null modem cable) or via a local network. The goal
: is to have one computer (either a DOS or Unix host) connect to
: a Unix computer, establish a remote kermit server, jump back to
: the connect-initiating computer, send files, and then finish the
: remote server on the Unix computer.
:
: I can do this manually, with no difficulty. I am struggling
: with getting past the "login/password" sequence on the remote
: Unix computer, as well as the "escape back to initiating computer"
: character sequence, in both Unix shell script and DOS batch files.
: Any help with automating this procedure from DOS batch files or
: Unix shell scripts would be most appreciated. Thank you in advance.
:
This is the most common use of Kermit scripts, and it is quite
straightforward. It is explained in complete detail in either one
of the manuals, "Using MS-DOS Kermit" or "Using C-Kermit", and
illustrated with numerous examples. UNIX C-Kermit even comes with
scripts that log in to various kinds of systems for you. Please
purchase one of these manuals and read about script programming.
It will make you into a self-sufficient script programmer, and you
will be contributing to the health of the Kermit project.
Also make sure you have up to date versions of the software:
MS-DOS Kermit 3.14; C-Kermit 5A(190) (for OS/2 it's 5A(191)).
About your question. Here is a hint. In a script program, you do
not CONNECT or escape back. Instead, you use INPUT and OUTPUT
commands to "read" and "type" what you would read and type by hand.
- Frank